<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="Demo2_Function.js" type="text/javascript"></script>
    <title>Demo2</title>
</head>

<body>
    <div>
        <h1>闰年</h1>
        <p>请键入一个年份:</p>
        <div>
            <input id="year" type="text" size="24" />
            <button onclick="leapYears();">计算闰年</button> <br />
            <span id="output"></span>
        </div>
    </div>

    <div>
        <h1>捐款</h1>
        <p>请输入您的捐款金额：</p>
        <input id="donationamount" type="text" size="24" />
        <button onclick="donation();">确认捐款</button>
    </div>

    <div>
        <h1>名字大小写转换器（单数位大写，双数位小写）</h1>
        <p>请输入您的名字（英文）:</p>
        <input id="name" type="text" size="24" />
        <button onclick="cap();">开始大小写转换!</button>
    </div>
</body>

</html>